extends Interactable

@export var mode := Player.EnteringMode.NORMAL
@export_group("Destination", "destination")
@export var destination_point: String
@export_file("*.tscn") var destination_scene: String

func init_interactable() -> void:
	action = func ():
		if %Player.is_entering:
			return
		GlobalGameData.player_direction = %Player.direction
		Game.change_scene(
			destination_scene,
			{
				"entry_point": destination_point,
				"entering_mode": mode,
			}
		)
	
